package com.study.controller;

import com.study.model.dto.request.SendVerifyCodeDto;
import com.study.service.SendSmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SendSmsController {

    @Autowired
    private SendSmsService sendSmsService;

    @PostMapping("/commons/verify_code")
    public String sendVerifyCode(SendVerifyCodeDto sendVerifyCodeDto) {
        sendSmsService.sendVerifyCode(sendVerifyCodeDto);
        return "success";
    }
}
